package com.gqz.aircraftwar.util

/**
 * 日志打印工具类
 *
 * @author gqz
 * @data 2020/3/20
 */

val loggable: Boolean = true

fun v(tag: String, msg: String) {
    if (loggable)
        android.util.Log.v(tag, msg)
}

fun i(tag: String, msg: String) {
    if (loggable)
        android.util.Log.i(tag, msg)
}

fun d(tag: String, msg: String) {
    if (loggable)
        android.util.Log.d(tag, msg)
}

fun w(tag: String, msg: String) {
    if (loggable)
        android.util.Log.w(tag, msg)
}

fun e(tag: String, msg: String) {
    if (loggable)
        android.util.Log.e(tag, msg)
}
